package com.ming.luckyDemo.service.serviceImpl;

import com.ming.luckyDemo.mapper.SelectHistoryBetMapper;
import com.ming.luckyDemo.pojo.DO.BetBillDO;
import com.ming.luckyDemo.pojo.DO.UserInfoDO;
import com.ming.luckyDemo.service.SelectHistoryBetSercvice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SelectHistoryServiceImpl implements SelectHistoryBetSercvice {
    @Autowired
    private SelectHistoryBetMapper selectHistoryBetMapper;

    @Override
    public UserInfoDO getCookie(String name) {
        return selectHistoryBetMapper.queryByName(name);
    }

    @Override
    public List<BetBillDO> selectBet(String name) {
        return selectHistoryBetMapper.selectBet(name);
    }
}
